/*
 * MainFrame.java  0.4.0 / Oct 23, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
package com.cute4j.swingx;

import com.cute4j.swing.Frame;
import com.cute4j.swing.Swing;

/**
 * Main Frame.
 *
 * @author Slobodan Vrkacevic
 * @version 0.4.0
 */
public class MainFrame extends Frame {

// Public Constructors. --------------------------------------------------------

  /**
   * Constructs new MainFrame object.
   */
  public MainFrame() {
    // empty constructor body
  }

  /**
   * Constructs new MainFrame object.
   *
   * @param title the window title
   */
  public MainFrame(String title) {
    super(title);
    setDefaultCloseOperation(Frame.QUIT_ON_CLOSE);
  }

// Public Methods. -------------------------------------------------------------

  /**
   * Shows frame and starts the GUI event loop.
   */
  public void show() {
    setVisible(true);
    Swing.startEventLoop();
  }

}
